//package com.relax.controller;
//
//import com.relax.service.SeataService;
//import io.seata.spring.annotation.GlobalTransactional;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/seata")
//public class SeataController {
//
//    @Autowired
//    private SeataService seataService;
//
//
//    @GetMapping("/update")
//    public String update(Integer userId,boolean error) {
//        return seataService.updateForSeata(userId,error);
//    }
//
//}
